package com.eleadmin.order.biz;

import com.eleadmin.common.system.entity.User;
import com.eleadmin.damon.utils.results.PageResult2;
import com.eleadmin.order.entity.ContainerBill;
import com.eleadmin.order.entity.ContainerBillFee;
import com.eleadmin.common.core.web.JsonResult;
import com.eleadmin.order.param.ContainerBillParam;
import org.apache.poi.ss.formula.functions.T;
import java.util.List;

/**
 *
 * 数据层接口
 * @author : Doman
 * @date : 2023-03-24 15:37:47
 * @version ：1.0
 */
public interface ContainerBillFeeBiz {

    /** 获取实体类表格
     * @param page
     * @param containerBillFee
     * @return
     */
    public JsonResult list(PageResult2<T> page, ContainerBillFee containerBillFee, User loginUser) throws Exception;

    /**
     * 获取实体类表格
     * @param containerBillFee
     * @return
     */
    public List<ContainerBillFee> list(ContainerBillFee containerBillFee, User loginUser);

    /**
     * 获取实体类表格
     * @return
     */
    public List<ContainerBillFee> listForExport(ContainerBillParam containerBillParam, User loginUser);

    /**
     * 获取实体类表格
     * @return
     */
    public List<ContainerBillFee> listForCustomerExport(ContainerBillParam containerBillParam, User loginUser);

    /**
     * 根据Id查询实体类
     * @param id
     * @return
     */
    public ContainerBillFee getById(String id);

    /**
     * 保存实体类
     * @param containerBillFee
     * @param loginUser
     * @return
     */
    public boolean save(ContainerBillFee containerBillFee, User loginUser);

    /**
     * 修改实体类
     * @param containerBillFee
     * @param loginUser
     * @return
     */
    public boolean update(ContainerBillFee containerBillFee, User loginUser);

    /**
     * 删除实体类
     * @param id
     * @param loginUser
     * @return
     */
    public boolean remove(String id, User loginUser);

    public List<String> feeNames(ContainerBill containerBill, User loginUser);

    public List<String> feeNamesForCustomer(ContainerBill containerBill, User loginUser);

}
